import {view, View, binder} from "adajs";
import CourseshowService from "./state.js";

@view({
    className: "courseshow",
    template: "./template.html",
    style: "./style.scss",
    dataset: {
        service: CourseshowService
    }
})
class Courseshow extends View {
    @binder("gotoPage")
    gotoPage({link}) {
        this.dispatchEvent("gotoPage", link.link)
    }
}

export default Courseshow;